package com.github.szhittech.bean;

import java.io.Serializable;

public class VersionBean implements Serializable, Comparable<VersionBean> {
    private String versionName;
    private int versionCode;
    private String description;
    private int forceUpdate;//0:?????????1:???????????????????

    public String getVersionName() {
        return versionName;
    }


    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getDescription() {
        return description;
    }

    public int getForceUpdate() {
        return forceUpdate;
    }

    public void setForceUpdate(int forceUpdate) {
        this.forceUpdate = forceUpdate;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    @Override
    public String toString() {
        return "VersionBean{" +
                "versionName='" + versionName + '\'' +
                ", versionCode=" + versionCode +
                ", description='" + description + '\'' +
                ", forceUpdate=" + forceUpdate +
                '}';
    }

    @Override
    public int compareTo(VersionBean o) {
        return o.getVersionCode() > versionCode ? o.getVersionCode() : versionCode;
    }
}
